package com.vidmt.api.modules.sys.auth;

public interface PwdStrategy {
	public String getAlg();

	public boolean valid(String plainpwd, String savedPassword);

	public String encryptPassword(String plainpwd, String key);

	public static interface ReversePwdStrategy extends PwdStrategy {
		/**
		 * 返回原始密码，用来做diguest
		 */
		public String decryptPassword(String savedPwd);
	}
}
